package com.darker.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.darker.domain.User;
import com.darker.Dao.UserMapper;
import com.darker.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public IPage<User> getPage(int page,int size) {
        IPage<User> ipage = new Page<>(page,size);
     userMapper.selectPage(ipage, null);
        return ipage;
    }
}
